package org.example.domain;

import java.util.Date;

public class Employee {
    private Integer id;
    private String name;
    private Integer dept_id;
    private String title;
    private Date join_date;
    private String phone;

    public Employee() {
    }

    public Employee(String name, Integer dept_id, String title, Date join_date, String phone) {
        this.name = name;
        this.dept_id = dept_id;
        this.title = title;
        this.join_date = join_date;
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getJoin_date() {
        return join_date;
    }

    public void setJoin_date(Date join_date) {
        this.join_date = join_date;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", dept_id=" + dept_id +
                ", title='" + title + '\'' +
                ", join_date=" + join_date +
                ", phone='" + phone + '\'' +
                '}';
    }
}
